package com.yulongtian.offers.day202212;

/**
 * https://leetcode.cn/problems/running-sum-of-1d-array/
 * 可
 *
 * @author yulongTian
 * @create 2022-12-13 11:30
 */
public class Test01 {
    public static void main(String[] args) {

    }

    public int[] runningSum(int[] nums) {
        for (int i = 1; i < nums.length; i++) {
            nums[i] += nums[i - 1];
        }
        return nums;
    }

}
